package br.com.commerj.controller;

import javax.faces.bean.ManagedBean;

@ManagedBean(name="MBPage")
public class ManagedBeanPage {
	
	private String page;
	
	
	public ManagedBeanPage() {
		super();
		if(page == null || page.equals("")){
			this.setPage("/template/default-page.xhtml");
		}
	}
	
	public void changeForPeople(){
		this.setPage("/app/pessoa/add.xhtml");
	}

	public String getPage() {
		return page;
	}

	public void setPage(String page) {
		this.page = page;
	}
	
}
